<style type="text/css">
    
    .template{
        float: left;
        margin: 0 5px 5px 0;
    }
    
</style>
<?php 

$link = $this->Html->getLink('admin/template/mini/');
foreach($templates as $tem){
    echo "<div class='template'><h2>$tem</h2><iframe src='{$link}$tem' height='280' width='210'></iframe></div>";
}

?>
